﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Descripción breve de BaseIntranet
/// </summary>
namespace IUAP.BLL.Intranet
{
    public abstract class BaseIntranet : BizObject
    {
        protected static IntranetElement Settings
        {
            get { return Globals.Settings.Intranet; }
        }

        protected static void CacheData(string key, object data)
        {
            if (Settings.EnableCaching && data != null)
            {
                BizObject.Cache.Insert(key, data, null,
                   DateTime.Now.AddSeconds(Settings.CacheDuration), TimeSpan.Zero);
            }
        }
    }
}